using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class getscoretrigger : MonoBehaviour
{
    void OnTriggerEnter2D(Collider2D x) {
        if (x.CompareTag("Player"))
        {
            if (x.gameObject.GetComponent<SimpleRocket>()._isGhost) return;
            AudioMgr.Instance.PlayFx(AudioFxType.Collected);
            endGame.ins.plusscore();
            Destroy(this.gameObject);
        }
    }
}
